<?php 
namespace app\common\model;
use think\Model;
use think\Db;
use think\Request;

class PlayerModel extends Model{

	/**
     * 营销账号 操作记录
     * @return
     */
    public function record($time,$operation,$operation_object,$type,$details,$befor_fstatus,$operation_why){
        // $time = date("Y-m-d H:i:s",time());//日期时间
        // $operation = Session::get("username");//操作人
        // $operation_object = input("param.operation_object");//操作对象
        // $type = input("param.type");//操作类型
        // $details = input("param.details");//操作详情
        // $befor_fstatus = input("param.befor_fstatus");//操作前状态
        // $why = input("param.befor_fstatus");//原因
        $data = [
            'time' =>$time,
            'operation'=>$operation,
            'operation_object'=>$operation_object,
            'type'=>$type,
            'details'=>$details,
            'befor_fstatus'=>$befor_fstatus,
            'operation_why'=>$operation_why,

        ];
        $club = Db::name('player_operation')
                ->insert($data);
    }
		
}
?>